package com.byb.server.service.dto;


import java.io.Serializable;
import java.util.Objects;
import javax.persistence.Lob;

/**
 * A DTO for the Isurer entity.
 */
public class IsurerDTO implements Serializable {

    private Long id;

    private String companyImage;

    private String backgroundImg;

    private String corporateName;

    @Lob
    private String sybopsis;

    private String shareholderInfoAbstract;

    @Lob
    private String shareholderInfo;

    private String companyOperationsAbstract;

    @Lob
    private String companyOperations;

    private String claimSettlingCapacityAbstract;

    @Lob
    private String claimSettlingCapacity;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCompanyImage() {
        return companyImage;
    }

    public void setCompanyImage(String companyImage) {
        this.companyImage = companyImage;
    }

    public String getBackgroundImg() {
        return backgroundImg;
    }

    public void setBackgroundImg(String backgroundImg) {
        this.backgroundImg = backgroundImg;
    }

    public String getCorporateName() {
        return corporateName;
    }

    public void setCorporateName(String corporateName) {
        this.corporateName = corporateName;
    }

    public String getSybopsis() {
        return sybopsis;
    }

    public void setSybopsis(String sybopsis) {
        this.sybopsis = sybopsis;
    }

    public String getShareholderInfoAbstract() {
        return shareholderInfoAbstract;
    }

    public void setShareholderInfoAbstract(String shareholderInfoAbstract) {
        this.shareholderInfoAbstract = shareholderInfoAbstract;
    }

    public String getShareholderInfo() {
        return shareholderInfo;
    }

    public void setShareholderInfo(String shareholderInfo) {
        this.shareholderInfo = shareholderInfo;
    }

    public String getCompanyOperationsAbstract() {
        return companyOperationsAbstract;
    }

    public void setCompanyOperationsAbstract(String companyOperationsAbstract) {
        this.companyOperationsAbstract = companyOperationsAbstract;
    }

    public String getCompanyOperations() {
        return companyOperations;
    }

    public void setCompanyOperations(String companyOperations) {
        this.companyOperations = companyOperations;
    }

    public String getClaimSettlingCapacityAbstract() {
        return claimSettlingCapacityAbstract;
    }

    public void setClaimSettlingCapacityAbstract(String claimSettlingCapacityAbstract) {
        this.claimSettlingCapacityAbstract = claimSettlingCapacityAbstract;
    }

    public String getClaimSettlingCapacity() {
        return claimSettlingCapacity;
    }

    public void setClaimSettlingCapacity(String claimSettlingCapacity) {
        this.claimSettlingCapacity = claimSettlingCapacity;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        IsurerDTO isurerDTO = (IsurerDTO) o;
        if(isurerDTO.getId() == null || getId() == null) {
            return false;
        }
        return Objects.equals(getId(), isurerDTO.getId());
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(getId());
    }

    @Override
    public String toString() {
        return "IsurerDTO{" +
            "id=" + getId() +
            ", companyImage='" + getCompanyImage() + "'" +
            ", backgroundImg='" + getBackgroundImg() + "'" +
            ", corporateName='" + getCorporateName() + "'" +
            ", sybopsis='" + getSybopsis() + "'" +
            ", shareholderInfoAbstract='" + getShareholderInfoAbstract() + "'" +
            ", shareholderInfo='" + getShareholderInfo() + "'" +
            ", companyOperationsAbstract='" + getCompanyOperationsAbstract() + "'" +
            ", companyOperations='" + getCompanyOperations() + "'" +
            ", claimSettlingCapacityAbstract='" + getClaimSettlingCapacityAbstract() + "'" +
            ", claimSettlingCapacity='" + getClaimSettlingCapacity() + "'" +
            "}";
    }
}
